<extend name="Space/index" />
<block name="main">
	
<div style="min-height: 511px;" id="wp" class="wp">
	<div id="pt" class="bm cl">
		<div class="z">
			<a href="http://www.miui.com/index.php" class="nvhm" title="首页">MIUI论坛</a><em>›</em>
			<a href="http://www.miui.com/home.php?mod=spacecp">设置</a><em>›</em>修改头像
		</div>
	</div>
	<div id="ct" class="ct2_a wp cl">
		<div class="mn">
			<div class="bm bw0">
				<h1 class="mt">修改头像
				</h1>
				<!--don't close the div here-->
				<script type="text/javascript">
function updateavatar() {
window.location.href = document.location.href.replace('&reload=1', '') + '&reload=1';
}
				</script>
				<form method="post" autocomplete="off" action="<{:U('Space/upload',array('uid'=>$_GET['uid']))}>" enctype="multipart/form-data" method="post">
					<div class="avatar_set_box">
						<table class="tfm" cellpadding="0" cellspacing="0">
						<caption>
						<h2 class="xs2">设置我的新头像</h2>
						<p>
							请选择一个新照片进行上传编辑。<br>
							头像保存后，您可能需要刷新一下本页面(按F5键)，才能查看最新的头像效果
						</p>
						</caption>
						
						</table>
					</div>
					<div>
							<!--上传头像部分-->
							<input type="file" name="photo" />
							<input type="submit" value="提交" >
						</div>
					<div class="avatar_show_box">
						<table class="tfm" cellpadding="0" cellspacing="0">
						<caption>
						<span id="retpre" class="y xi2" style="display:none;"><a href="">返回上一页</a></span>
						<h2 class="xs2">当前我的头像</h2>
						<p>
							如果您还没有设置自己的头像，系统会显示为默认头像，您需要自己上传一张新照片来作为自己的个人头像
						</p>
						</caption>
						<tbody>
						<tr>
							<td>
								<div class="avatar_s_box">
									<img src="__PUBLIC__/Home/image/space/touxiang/<{$image}>" width="150">
								</div>
							</td>
						</tr>
						</tbody>
						</table>
					</div>
					<input name="formhash" value="1e15e143" type="hidden">
				</form>
			</div>
		</div>
		<script type="text/javascript">
var redirecturl = loadUserdata('avatar_redirect');
if(redirecturl) {
$('retpre').innerHTML = '<a href="' + redirecturl + '">返回上一页</a>';
}
		</script>
		<div class="appl">
			<div class="tbn miui_spacecp">
				<h2 class="mt bbda">设置</h2>
				<ul>
					<li class="a">
					<span style="background-position-x: 0px;"></span>
					<a href="http://www.miui.com/home.php?mod=spacecp&amp;ac=avatar">修改头像</a>
					</li>
					<li><span style="background-position-x: -13px;"></span><a href="<{:U('Space/personal',array('uid'=>$_GET['uid']))}>">个人资料</a></li>
					<li><a href="http://www.miui.com/home.php?mod=spacecp&amp;ac=credit"><span style="background-position-x: -26px;"></span>积分</a></li>
					<li><a href="<{:U('User/secret',array('uid'=>$_GET['uid']))}>"><span style="background-position-x: -83px;"></span>密码安全</a></li>
				</ul>
			</div>
		</div>
	</div>
</div>

</block>
